package com.example.library_common.bean;

import com.alibaba.fastjson.annotation.JSONField;

public class UpDataVersionBean {


    /**
     * flag : 0
     * version : {"vid":2,"versionVal":"1.0.2","updateContent":"测试","isForce":1,"downloadUrl":"http://token.regyun.com/download/sstwallet.apk"}
     */

    @JSONField(name = "flag")
    private int flag;

    @JSONField(name = "version")
    private VersionBean version;

    public int getFlag() {
        return flag;
    }

    public boolean needToUpData() {
        return flag ==1;
    }

    public void setFlag(int flag) {
        this.flag = flag;
    }

    public VersionBean getVersion() {
        return version;
    }

    public void setVersion(VersionBean version) {
        this.version = version;
    }

    public static class VersionBean {
        /**
         * vid : 2
         * versionVal : 1.0.2
         * updateContent : 测试
         * isForce : 1
         * downloadUrl : http://token.regyun.com/download/sstwallet.apk
         */

        @JSONField(name = "vid")
        private int vid;

        @JSONField(name = "versionVal")
        private String versionVal;

        @JSONField(name = "updateContent")
        private String updateContent;

        @JSONField(name = "isForce")
        private int isForce;

        @JSONField(name = "downloadUrl")
        private String downloadUrl;

        public int getVid() {
            return vid;
        }

        public void setVid(int vid) {
            this.vid = vid;
        }

        public String getVersionVal() {
            return versionVal;
        }

        public void setVersionVal(String versionVal) {
            this.versionVal = versionVal;
        }

        public String getUpdateContent() {
            return updateContent;
        }

        public void setUpdateContent(String updateContent) {
            this.updateContent = updateContent;
        }

        public int getIsForce() {
            return isForce;
        }

        public void setIsForce(int isForce) {
            this.isForce = isForce;
        }

        public String getDownloadUrl() {
            return downloadUrl;
        }

        public void setDownloadUrl(String downloadUrl) {
            this.downloadUrl = downloadUrl;
        }
    }
}
